package com.woniu.order.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 吴彦祖
 * @since 2024年04月02日
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_course_order")
public class TCourseOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "order_num", type = IdType.AUTO)
    private String orderNum;

    @TableField("course_id")
    private Integer courseId;

    @TableField("gym_num")
    private String gymNum;

    @TableField("user_id")
    private Integer userId;

    @TableField("user_name")
    private String userName;

    @TableField("order_money")
    private BigDecimal orderMoney;

    @TableField("order_date")
    private String orderDate;

    @TableField("cancel_date")
    private String cancelDate;

    /**
     * 1.已评价 2.未评价
     */
    @TableField("evaluate_state")
    private Integer evaluateState;

    /**
     *  0 未支付 1 已支付 2 已取消  3已完成
     */
    @TableField("order_state")
    private Integer orderState;

    @TableField("order_paytime")
    private LocalDateTime orderPaytime;

    /**
     * 1.未删除 2.已删除
     */
    @TableField("delete_flag")
    private Integer deleteFlag;

    @TableField("remark")
    private String remark;


}
